package edu.hubu.log.impl;

import edu.hubu.log.Logger;

import java.time.LocalDateTime;

/**
 * @author moonlan
 * date 2021/3/30 上午9:18
 */
@SuppressWarnings(value = "unused")
public class FileLog extends Logger {

    public FileLog(Class<?> clazz) {super(clazz);}

    @Override
    public void trace(String msg) {
        System.out.printf("file log -- trace-->" + (format), LocalDateTime.now(), aClass, msg);
    }

    @Override
    public void debug(String msg) {
        System.out.printf("file log -- debug-->" + (format), LocalDateTime.now(), aClass, msg);
    }

    @Override
    public void info(String msg) {
        System.out.printf("file log -- info-->" + (format), LocalDateTime.now(), aClass, msg);
    }

    @Override
    public void warn(String msg) {
        System.out.printf("file log -- warn-->" + (format), LocalDateTime.now(), aClass, msg);
    }

    @Override
    public void error(String msg) {
        System.out.printf("file log -- error-->" + (format), LocalDateTime.now(), aClass, msg);
    }
}
